#include "utils/apputils.h"

#include <QtCore/QCoreApplication>

namespace yoohoo_utils {

const QDir& AppUtils::appDir() {
	static QDir APP_DIR(QFileInfo(QCoreApplication::applicationDirPath()).dir());

	while (!APP_DIR.exists("bin")) {
		APP_DIR.cdUp();
	}

	return APP_DIR;
}

}
